package com.hulk.ratel

import org.springframework.boot.builder.SpringApplicationBuilder
import org.springframework.boot.web.support.SpringBootServletInitializer

/**
 * @Author: hulk
 * @E-mail: 29572320@qq.com
 * @Date: Create in 2018/3/20 下午4:06
 * @Version: 1.0.0
 * @Modify by:
 * Class description
 */
class SpringBootKotlinServletInitializer : SpringBootServletInitializer() {

    override fun configure(builder: SpringApplicationBuilder): SpringApplicationBuilder {
        // 注意这里要指向原先用main方法执行的Application启动类
        return builder.sources(SpringBootKotlinApplication::class.java!!)
    }
}